Skip to content

Fix on_hover_collector_over not deactivating thrusters - #5

Open
wannerdev wants to merge 1 commit into
mainfrom
bugfix/hover-collector-thruster-removal
Open

Fix on_hover_collector_over not deactivating thrusters#5
wannerdev wants to merge 1 commit into
mainfrom
bugfix/hover-collector-thruster-removal

Conversation

@wannerdev

Copy link
Copy Markdown
Owner

Description

Fixes a bug where hovering over a satellite to select it would not properly deactivate the thrusters of previously selected satellites, causing them to continue burning fuel and applying thrust.

Changes

  • Added thruster_query parameter to on_hover_collector_over function
  • Now properly deactivates thrusters when removing NavigationInstruments from other satellites
  • Prevents thrusters from staying active on deselected satellites
  • Fixes mobile input issue where thrusters remained active after selection change

Bug Details

Before: When hovering over a new satellite, the old satellite would lose its NavigationInstruments marker but its thruster would remain active, continuing to burn fuel and apply force.

After: When hovering over a new satellite, the old satellite's thruster is properly deactivated along with removing the NavigationInstruments marker.

Testing

  • Launch multiple satellites
  • Hover over one to select it and activate thruster
  • Hover over another satellite
  • Verify the first satellite's thruster is now inactive
  • Test on both desktop (mouse) and mobile (touch) inputs

Related Issue

Fixes: Bug - on_hover_collector_over does not remove thruster components (related to mobile input)

- Added thruster_query parameter to on_hover_collector_over
- Now properly deactivates thrusters when removing NavigationInstruments
- Prevents thrusters from staying active on deselected satellites
- Fixes mobile input issue where thrusters remained active
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant